3.37 \(\int \frac {\sin ^3(c+d x)}{a-a \sin ^2(c+d x)} \, dx\)

Optimal. Leaf size=27 \[ \frac {\cos (c+d x)}{a d}+\frac {\sec (c+d x)}{a d} \]

[Out]

cos(d*x+c)/a/d+sec(d*x+c)/a/d

________________________________________________________________________________________

Rubi [A]  time = 0.07, antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {3175, 2590, 14} \[ \frac {\cos (c+d x)}{a d}+\frac {\sec (c+d x)}{a d} \]

Antiderivative was successfully verified.

[In]

Int[Sin[c + d*x]^3/(a - a*Sin[c + d*x]^2),x]

[Out]

Cos[c + d*x]/(a*d) + Sec[c + d*x]/(a*d)

Rule 14

Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
 &&  !LinearQ[u, x] &&  !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]

Rule 2590

Int[sin[(e_.) + (f_.)*(x_)]^(m_.)*tan[(e_.) + (f_.)*(x_)]^(n_.), x_Symbol] :> -Dist[f^(-1), Subst[Int[(1 - x^2
)^((m + n - 1)/2)/x^n, x], x, Cos[e + f*x]], x] /; FreeQ[{e, f}, x] && IntegersQ[m, n, (m + n - 1)/2]

Rule 3175

Int[(u_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]^2)^(p_), x_Symbol] :> Dist[a^p, Int[ActivateTrig[u*cos[e + f*x
]^(2*p)], x], x] /; FreeQ[{a, b, e, f, p}, x] && EqQ[a + b, 0] && IntegerQ[p]

Rubi steps

\begin {align*} \int \frac {\sin ^3(c+d x)}{a-a \sin ^2(c+d x)} \, dx &=\frac {\int \sin (c+d x) \tan ^2(c+d x) \, dx}{a}\\ &=-\frac {\operatorname {Subst}\left (\int \frac {1-x^2}{x^2} \, dx,x,\cos (c+d x)\right )}{a d}\\ &=-\frac {\operatorname {Subst}\left (\int \left (-1+\frac {1}{x^2}\right ) \, dx,x,\cos (c+d x)\right )}{a d}\\ &=\frac {\cos (c+d x)}{a d}+\frac {\sec (c+d x)}{a d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.03, size = 25, normalized size = 0.93 \[ \frac {\frac {\cos (c+d x)}{d}+\frac {\sec (c+d x)}{d}}{a} \]

Antiderivative was successfully verified.

[In]

Integrate[Sin[c + d*x]^3/(a - a*Sin[c + d*x]^2),x]

[Out]

(Cos[c + d*x]/d + Sec[c + d*x]/d)/a

________________________________________________________________________________________

fricas [A]  time = 0.44, size = 25, normalized size = 0.93 \[ \frac {\cos \left (d x + c\right )^{2} + 1}{a d \cos \left (d x + c\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(d*x+c)^3/(a-a*sin(d*x+c)^2),x, algorithm="fricas")

[Out]

(cos(d*x + c)^2 + 1)/(a*d*cos(d*x + c))

________________________________________________________________________________________

giac [A]  time = 0.13, size = 29, normalized size = 1.07 \[ \frac {\cos \left (d x + c\right )}{a d} + \frac {1}{a d \cos \left (d x + c\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(d*x+c)^3/(a-a*sin(d*x+c)^2),x, algorithm="giac")

[Out]

cos(d*x + c)/(a*d) + 1/(a*d*cos(d*x + c))

________________________________________________________________________________________

maple [A]  time = 0.30, size = 23, normalized size = 0.85 \[ \frac {\cos \left (d x +c \right )+\frac {1}{\cos \left (d x +c \right )}}{d a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(d*x+c)^3/(a-a*sin(d*x+c)^2),x)

[Out]

1/d/a*(cos(d*x+c)+1/cos(d*x+c))

________________________________________________________________________________________

maxima [A]  time = 0.34, size = 27, normalized size = 1.00 \[ \frac {\frac {\cos \left (d x + c\right )}{a} + \frac {1}{a \cos \left (d x + c\right )}}{d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(d*x+c)^3/(a-a*sin(d*x+c)^2),x, algorithm="maxima")

[Out]

(cos(d*x + c)/a + 1/(a*cos(d*x + c)))/d

________________________________________________________________________________________

mupad [B]  time = 0.04, size = 25, normalized size = 0.93 \[ \frac {{\cos \left (c+d\,x\right )}^2+1}{a\,d\,\cos \left (c+d\,x\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(c + d*x)^3/(a - a*sin(c + d*x)^2),x)

[Out]

(cos(c + d*x)^2 + 1)/(a*d*cos(c + d*x))

________________________________________________________________________________________

sympy [A]  time = 6.93, size = 36, normalized size = 1.33 \[ \begin {cases} - \frac {4}{a d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} - a d} & \text {for}\: d \neq 0 \\\frac {x \sin ^{3}{\relax (c )}}{- a \sin ^{2}{\relax (c )} + a} & \text {otherwise} \end {cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(d*x+c)**3/(a-a*sin(d*x+c)**2),x)

[Out]

Piecewise((-4/(a*d*tan(c/2 + d*x/2)**4 - a*d), Ne(d, 0)), (x*sin(c)**3/(-a*sin(c)**2 + a), True))

________________________________________________________________________________________